package com.zhi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity
@Table(name="ldcode")
@Data
@AllArgsConstructor
@NoArgsConstructor
@IdClass(LDCodePK.class)
public class LDCode {
    @Column(name="code_type")
    @Id
    private String CodeType;

    @Column(name="code")
    @Id
    private String Code;

    @Column(name="code_name")
    private String CodeName;

    @Column(name="code_alias")
    private String CodeAlias;
}
